# frozen_string_literal: true
class ScriptController  < ApplicationController

  def restoredatabase
  	Interview.delete_all
  	User.delete_all
  	Guest.delete_all
  	Building.delete_all
  	Editor.delete_all "telephone != '13813813818'"
  	Car.delete_all
  	Village.delete_all
  	render json: { success: true }.to_json
  end

end
